
package entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;



/**
 *
 * @author Chenhui
 */
@Entity
public class FinancialInstrumentEntity implements Serializable {
  
    @Id
    private String id;

    private Date dateOfPurchase;
    private Date dateOfSell;
    private float value;
    private String timeValuated;
    
    public FinancialInstrumentEntity(){}

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the dateOfPurchase
     */
    public Date getDateOfPurchase() {
        return dateOfPurchase;
    }

    /**
     * @param dateOfPurchase the dateOfPurchase to set
     */
    public void setDateOfPurchase(Date dateOfPurchase) {
        this.dateOfPurchase = dateOfPurchase;
    }

    /**
     * @return the dateOfSell
     */
    public Date getDateOfSell() {
        return dateOfSell;
    }

    /**
     * @param dateOfSell the dateOfSell to set
     */
    public void setDateOfSell(Date dateOfSell) {
        this.dateOfSell = dateOfSell;
    }

    /**
     * @return the value
     */
    public float getValue() {
        return value;
    }

    /**
     * @param value the value to set
     */
    public void setValue(float value) {
        this.value = value;
    }

    /**
     * @return the timeValuated
     */
    public String getTimeValuated() {
        return timeValuated;
    }

    /**
     * @param timeValuated the timeValuated to set
     */
    public void setTimeValuated(String timeValuated) {
        this.timeValuated = timeValuated;
    }
    
    
    
    
}
